package com.demo.page.feign.partner;

import com.demo.common.entity.CooperativePartner;

import com.demo.page.feign.impl.partner.CooperativePartnerFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 合作伙伴
 * 作者：张佑威
 */
@FeignClient(name = "houpu-service-bean",fallback = CooperativePartnerFeignImpl.class)
public interface CooperativePartnerFeign {
    @GetMapping("/Partner/{industryId}")
    public List<CooperativePartner> selectByIndustryId(@PathVariable("industryId") Integer industryId);
    /**
     * 合作伙伴详情
     * @param id
     * @return
     */
    @GetMapping("/PartnerDetail/{id}")
    public CooperativePartner selectById(@PathVariable("id") Integer id);
}
